import {createRouter,createWebHistory}from'vue-router'
 let router=createRouter({
  history:createWebHistory(),
  routes:[
    {
      path:'/',
      redirect:'/Add'
    },
    {
      path:'/Login',
      component:()=>import("../Views/HomeLogin.vue")
    },
    {
      path:'/Add',
      component:()=>import("../Views/HomeAdd.vue")
    },
    //管理员登录
    {
      path:'/Admin',
      component:()=>import("../Views/admin/AdminLogin.vue")
    }
    ,
    {
      path:'/Show',
      component:()=>import("../Views/admin/HomeList.vue")
    }
  ]
})
export default router